package com.zxb.core.util;

import java.util.regex.Pattern;

/**
 * @author Zxb
 */
public class MailUtil {
    public static final Pattern emailPattern = Pattern.compile("^[a-zA-Z0-9_+&*-]+(?:\\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\\.)+[a-zA-Z]{2,7}$");
    public static boolean isEmail(String str){
        return emailPattern.matcher(str).matches();
    }
}
